package org.yufan.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.yufan.bean.ItemCat;
import org.yufan.mapper.ItemCatMapper;
import org.yufan.service.ItemCatService;

import java.util.List;

/**
 * Created by zxd on 2018/3/22.
 */
@Service
public class ItemCatServiceImpl extends BaseServiceImpl<ItemCat> implements ItemCatService{

    @Autowired
    private ItemCatMapper itemCatMapper;
    @Override
    public List<ItemCat> queryItemCat(Long parentId) {
        //设置查询条件
        ItemCat record=new ItemCat();
        record.setParentId(parentId);
        List<ItemCat> itemCatList = itemCatMapper.select(record);
        return itemCatList;
    }


}
